package com.test.QtestServer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.QtestServer.pojo.Interface;
import com.test.QtestServer.pojo.Result;
import com.test.QtestServer.service.InterfaceService;

@RestController
@RequestMapping("/interface")
public class InterfaceController {

    @Autowired
    private InterfaceService interfaceService;


    @GetMapping("/{id}")
    public Result findInterfaceById(Integer id){
        Interface interface_item = interfaceService.findInterfaceById(id);
        return Result.success(interface_item);     
    }
    
}
